# _*_ coding:utf-8 _*_
# @File  : modify_chart_option.py
# @Time  : 2021-11-10  10:49
# @Author: zizle

from pathlib import Path
import json
import time

for file in Path('19/2021/09').rglob('*'):
    with open(file, 'r') as f:
        content = json.load(f)
        for series in content['series_data']:
            series['contain_zero'] = 0
        content['watermark'] = '瑞达期货研究院'
    with open(file, 'w', encoding='utf8') as wf:
        json.dump(content, wf, indent=4)
    print(file)
    time.sleep(1)
